public class text1 {
    public static void main(String[] args) {
        int a=10;
        int b=20;
        int c=30;
        int arr=a>b?a:(b>c?b:c);
        System.out.println(arr);
        int arr2=arr>c?arr:c;
        System.out.println(arr2);
    }
}
